var dataObj=function()
{
	this.fruitNum=0;
	this.double=1;
	this.score=0;
	this.gameOver=false;
	this.alpha=0
}


dataObj.prototype.draw=function()
{
	var w=can1.width;
	var h=can1.height;
	
	ctx1.save();
	ctx1.shadowBlur=20;
	ctx1.shadowColor="white"
	
	ctx1.fillStyle="white";
	ctx1.font="20px 汉仪晴空体简"
	ctx1.textAlign="center"
	
	ctx1.fillText("得分: "+this.score,w*0.5,h-20);
	
	if(this.gameOver)
	{	
		this.alpha+=deltaTime*0.0005
		if(this.alpha>1)
		{
			this.alpha=1
		}
		ctx1.fillStyle="rgba(255,255,255,"+this.alpha+")";
		ctx1.font="30px 汉仪晴空体简"
		ctx1.textAlign="center"
		ctx1.fillText("GameOver: "+this.score,w*0.5,h*0.5);
	}
	ctx1.restore();
	
}
dataObj.prototype.addScore=function()
{
	this.score+=this.fruitNum*100*this.double;
	this.fruitNum=0;
	this.double=1;
	
}